package com.admin.education.models.Mapper;

import com.admin.education.models.Answers;
import com.admin.education.models.TemplateAnswers;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper
public abstract class TemplateAnswerMapper {
    @Mappings({
            @Mapping(target = "id", ignore = true),
            @Mapping(target = "templateQuestions",ignore = true)
    })
    public abstract TemplateAnswers mapFrom(Answers answers);
    @Mappings({
    })
    public abstract List<TemplateAnswers> mapFrom(List<Answers> answers);
}
